package com.cats.template.sys.services.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cats.template.sys.mapper.RolePermissionsMapper;
import com.cats.template.sys.pojo.model.RolePermissionsModel;
import com.cats.template.sys.services.RolePermissionsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author duxiaobo
 * @date 2021/9/248:31 下午
 */
@Slf4j
@Service
public class RolePermissionsServiceImpl extends ServiceImpl<RolePermissionsMapper, RolePermissionsModel> implements RolePermissionsService {

    @Autowired
    private RolePermissionsMapper rolePermissionsMapper;

    @Override
    public Boolean deleteByRoleId(Long roleId) {
        return rolePermissionsMapper.deleteByRoleId(roleId);
    }
}
